﻿using System;
using System.Collections.Generic;

namespace BackupLibrary
{
    public class Job
    {
        public enum BackupTypes
        {
            Folder,
            Ftp
        }

        public enum AutenticationTypes
        {
            Windows,
            Sql
        }

        public string Server { get; set; }
        public string Database { get; set; }
        public AutenticationTypes Security { get; set; }
        public string UserName { get; set; }
        public string Password { get; set; }
        public DateTime StartingDate { get; set; }
        public BackupTypes Type { get; set; }
        public string Folder { get; set; }
        public string FtpServer { get; set; }
        public string FtpUser { get; set; }
        public string FtpPassword { get; set; }
        public byte FtpPort { get; set; }
        public string FtpFolder { get; set; }
        public bool doCompress { get; set; }
        public DateTime LastExecuteDate { get; set; }
        public int MaxExpireDays { get; set; }
    }

    public class Jobs
    {
        private List<Job> _jobs = new List<Job>();
        public List<Job> AllTask
        {
            get
            {
                return _jobs;
            }
        }
    }
}
